Skip to content

fix(agent): canonicalize wire tool names across director and tui tracking - #1252

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-9539-raw-wire-name-comparisons-break-director-and-tui-tool
Oct 2, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-9539-raw-wire-name-comparisons-break-director-and-tui-tool

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Resolves incoming wire tool names through canonicalToolName across director triggers, watchdogs, and TUI event handlers so aliased tools match internal engine names
  • Restores the director LSP activation trigger when models emit read/edit instead of read_file/edit_file
  • Fixes task tracking and tool watchdog recognition for projected and aliased tool names

Verification

  • bun run check passes cleanly (lint, typecheck, dead exports, build, and projects-dir guarded test suite with 7,871 tests)
  • Unit test in src/agent/director.test.ts asserts LSP auto-activation emits for both wire names (read, edit) and engine names (read_file, edit_file)

Fixes CL-9539

@linear-code

linear-code Bot commented Sep 30, 2026

Copy link
Copy Markdown

CL-9539

Raw wire tool names from incoming tool calls were compared directly
against internal engine names across director triggers, watchdogs,
and TUI event handlers. Resolve them through canonicalToolName so
aliased wire names (e.g. read/edit, manage_tasks) match correctly.
@TheGreatAxios
TheGreatAxios force-pushed the cl-9539-raw-wire-name-comparisons-break-director-and-tui-tool branch from 20f031c to 7c91b0c Compare October 2, 2026 16:46
@TheGreatAxios
TheGreatAxios merged commit 3bde24f into main Oct 2, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant